package com.hrt.datasender.datadao.model;

import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

public class BcSendPlatformDataStrategyModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    public static String tableName = "BC_SEND_PLATFORM_DATA_STRATEGY";

    public static IField id = new Field(BcSendPlatformDataStrategyModel.class, "ID", FieldType.String, true);

    public static IField platformId = new Field(BcSendPlatformDataStrategyModel.class, "PLATFORM_ID", FieldType.String,
            false);

    public static IField storageStrategyId = new Field(BcSendPlatformDataStrategyModel.class, "STORAGE_STRATEGY_ID",
            FieldType.String, false);

    public static IField processStrategyId = new Field(BcSendPlatformDataStrategyModel.class, "PROCESS_STRATEGY_ID",
            FieldType.String, false);

    public void setId(String value) {
        setFieldValue(id.getFieldName(), value);
    }

    public String getId() {
        Object value = getFieldValue(BcSendPlatformDataStrategyModel.id.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setPlatformId(String value) {
        setFieldValue(platformId.getFieldName(), value);
    }

    public String getPlatformId() {
        Object value = getFieldValue(BcSendPlatformDataStrategyModel.platformId.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setStorageStrategyId(String value) {
        setFieldValue(storageStrategyId.getFieldName(), value);
    }

    public String getStorageStrategyId() {
        Object value = getFieldValue(BcSendPlatformDataStrategyModel.storageStrategyId.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setProcessStrategyId(String value) {
        setFieldValue(processStrategyId.getFieldName(), value);
    }

    public String getProcessStrategyId() {
        Object value = getFieldValue(BcSendPlatformDataStrategyModel.processStrategyId.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public String getTableName() {
        return tableName;
    }

    public boolean isNeedCache() {
        return false;
    }

}